<%
  method = locals[:method]
  maybe_unused = locals[:maybe_unused]

  maybe_unused_str = ''
  if maybe_unused
    maybe_unused_str = '[[maybe_unused]] '
  end

  if method.static
    parameters = maybe_unused_str + 'jclass thisClass' + JNIHelper.parameters(method.parameters)
  else
    parameters = maybe_unused_str + 'jobject thisObject' + JNIHelper.parameters(method.parameters.drop(1))
  end
-%>
<%= JNIHelper.type(method.return_type) %> JNICALL <%= JNIHelper.function_name(entity: entity, function: method) %>(<%= maybe_unused_str %>JNIEnv *env, <%= parameters %>)<% -%>
